package com.qfedu.edu.constance;

/**
 * @author xiaobobo
 * @title: RabbitMQCOnstance
 * @projectName seckill-fy-2401-parent
 * @description: TODO
 * @date 2024/11/7  11:15
 */
public class RabbitMQConstance {

    //这个队列是MySQL的数据到ES中惊醒同步的这个队列
    private static final String MYSQL_MQ_NAME="mysqlToMqQueue";

    //订单队列
    private static final String ORDER_NAME="orderQueue";
    //减库存的队列
    private static final String STOCK_REDUCE_NAME="stockQueue";

    //防止少卖的这个队列
    private static final String ORDER_EXPIRE_NAME="orderExpireQueue";

    //订单的购买状态检测的这个TTL队列
    private static final String ORDER_TTL_NAME="orderTTLQueue";

    //这个维护的是所有队列的名字
    private static final String[] queueNames={
            "mysqlToMqQueue","orderQueue","stockQueue","orderExpireQueue","orderTTLQueue"
    };

    public static String[] getQueueNames() {
        return queueNames;
    }

    public static String getOrderTtlName() {
        return ORDER_TTL_NAME;
    }

    public static String getOrderExpireName() {
        return ORDER_EXPIRE_NAME;
    }

    public static String getStockReduceName() {
        return STOCK_REDUCE_NAME;
    }

    public static String getOrderName() {
        return ORDER_NAME;
    }

    public static String getMysqlMqName() {
        return MYSQL_MQ_NAME;
    }
}
